package com.sponsorpay.sdk.android.publisher;

import android.content.Context;
import com.sponsorpay.sdk.android.SponsorPay;
import com.sponsorpay.sdk.android.credentials.SPCredentials;
import com.sponsorpay.sdk.android.utils.StringUtils;
import java.util.Map;

public abstract class AbstractConnector<V>
  implements AsyncRequest.AsyncRequestResultListener
{
  protected static final String URL_PARAM_KEY_TIMESTAMP = "timestamp";
  protected Context mContext;
  protected SPCredentials mCredentials;
  protected Map<String, String> mCustomParameters;
  protected V mUserListener;
  protected String remoteResourceUrl;

  protected AbstractConnector(Context paramContext, String paramString, V paramV)
  {
    this.mContext = paramContext;
    this.mCredentials = SponsorPay.getCredentials(paramString);
    this.mUserListener = paramV;
    if (StringUtils.nullOrEmpty(this.mCredentials.getSecurityToken()))
      throw new IllegalArgumentException("Security token has not been set on the credentials");
  }

  protected String getCurrentUnixTimestampAsString()
  {
    return String.valueOf(System.currentTimeMillis() / 1000L);
  }

  public void setCustomParameters(Map<String, String> paramMap)
  {
    this.mCustomParameters = paramMap;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.sponsorpay.sdk.android.publisher.AbstractConnector
 * JD-Core Version:    0.6.2
 */